<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>360全景图展示</title>
    <link rel="stylesheet" href="photo-sphere-viewer.css" />
    <script src="three.min.js"></script>
    <script src="browser.js"></script>
    <script src="photo-sphere-viewer.js"></script>
</head>

<body>
    <style>
        body {
            font-size: 16px;
            background-color: #E6E7EB;
            margin: 0;
        }
        
        #your-pano {
            position: relative;
            margin: 0 auto;
        }
        
        .container {
            width: 600px;
            height: 400px;
            margin: 100px auto;
        }
    </style>
    <div class="container">
        <div id="your-pano"></div>
    </div>
    <script>
        var div = document.getElementById('your-pano');
        var viewer = new PhotoSphereViewer.Viewer({
            container: div,
            panorama: '../../static/img/1.jpg',
            size: {
                width: '100%',
                height: '100%'
            }
        });
    </script>
</body>

</html>